//
//  CommonSectionAdapter.m
//  BaseProject
//
//  Created by itzhaolei on 2024/5/14.
//

#import "CommonSectionAdapter.h"

@interface CommonSectionAdapter()

/// 唯一标识符
@property (nonatomic, strong) NSString *identifier;

@end

@implementation CommonSectionAdapter

- (instancetype)init {
    if (self = [super init]) {
        [self reset];
    }
    return self;
}

#pragma mark - Action
- (void)reset {
    self.identifier = NSUUID.UUID.UUIDString;
}

#pragma mark - IGListDiffable
- (id<NSObject>)diffIdentifier{
    return self.identifier;
}
- (BOOL)isEqualToDiffableObject:(id<IGListDiffable>)object{
    return [self.identifier isEqualToString:(NSString *)object.diffIdentifier];
}

@end
